home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Headers / misckit / MiscUserGroup.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-24  |  1.5 KB  |  50 lines

  1. /****************************************************************************
  2.   CLASS:            MiscUserGroup
  3.   INHERITS FROM:    Object
  4.   CONFORMS TO:        None
  5.   PROGRAMMER:        Todd Thomas, Copyright 1994, 1995.
  6.   DESIGN HELP:        Don Yacktman
  7.   DATE BEGAN:        December 17, 1994
  8.   LAST CHANGED:        January 23, 1995
  9.   VERSION:            0.2
  10.   CHANGES:            See the end of the implementation for details.
  11.   
  12.   MiscUserGroup allows you to get information about the groups on your
  13.   system. You can ask the class for a list of all the system's groups,
  14.   or ask an instance for a list of it's members. You can initialize an
  15.   instance by group id (gid) or group name ("root" for instance).
  16.   
  17.   If you have multiple domains (say a local and network domain) then
  18.   methods like +allGroups and -members will traverse both (or more) domains
  19.   and return all the information it finds. See the documentation for
  20.   more information.
  21.  
  22.   This object is included in the MiscKit by permission from the author
  23.   and its use is governed by the MiscKit license, found in the file
  24.   "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  25.   for a list of all applicable permissions and restrictions.
  26.   
  27.  *****************************************************************************/
  28.  
  29. #include <objc/Object.h>
  30.  
  31.  
  32. @interface MiscUserGroup : Object
  33. {
  34.     int  gid;
  35.     char  *groupname;
  36. }
  37.  
  38. + (List *)allGroups;
  39.  
  40. - initWithGroupId: (int)groupId;
  41. - initWithGroupName: (const char *)gname;
  42. - free;
  43.  
  44. - (const char *)groupName;
  45. - (int)groupId;
  46.  
  47. - (List *)members;
  48.  
  49. @end
  50.